<?php

/**
 * GMFB - Index file
 *
 * @author Anthony Straetman <anthony.straetman@gmail.com>
 *
 */

// include project specific includes
require_once './core/includes/config.php';
require_once './core/includes/functions.php';
require_once './core/includes/exceptions.php';
// include Plonk & PlonkWebsite
require_once './library/plonk/plonk.php';
require_once './library/plonk/website/website.php';

// Gentlemen, start your engines!
try {

	// This is the real deal here :-)
	$website = new PlonkWebsite(
		array('home', 'register', 'login', 'logout', 'route', 'event', 'browse', 'restricted', 'oops')
	);

} catch (Exception $e) { 	// Ooops, somehing went wrong ...
	if (defined('DEBUG') && (DEBUG === true))
	{
		echo '<h1>Exception Occured</h1><pre>';
		throw $e;
	} else exit('There was an error with processing your request - Please retry.');
}

// EOF - Yes, that's it! :-)